package com.xqboss.apps.dto.guild;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 公会
 *
 * @author wangcong
 * @date 2023-11-01
 */
@Data
@ApiModel("Web公会dto")
public class WebGuildDto {

    @ApiModelProperty(value = "公会用户列表", required = true)
    @NotNull(message = "请输入公会用户列表")
    @Size(min = 1, message = "至少公会给一个用户")
    private List<String> userList;

    @ApiModelProperty("公会等级")
    @Min(value = 1, message = "公会等级最小值为1")
    private Integer level = 1;

    @ApiModelProperty("最大成员数量")
    @Min(value = 50, message = "成员数最小值为50")
    private Integer maxNumber = 50;
}